home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9418 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: darkstar.UCSC.EDU!usenet
  2. From: "Chuck L. Peterson" <clp@alumni.cse.ucsc.edu>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.graphics.api.opengl
  4. Subject: Re: MfcOgl to get multiple OpenGL contexts
  5. Date: Fri, 01 Mar 1996 10:35:22 -0800
  6. Organization: Multi-Trek Control Center
  7. Message-ID: <3137436A.79F0@alumni.cse.ucsc.edu>
  8. References: <3135497E.2AE@alumni.cse.ucsc.edu> <4h75j7$2f8@sundog.tiac.net>
  9. NNTP-Posting-Host: omega.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. I want a single window with 2 different OpenGl views, with
  16. several Win95 PushButtons, a single line Text Entry field,
  17. and a cheesy Icon resource below them. Using multiple viewports
  18. on the same OpenGL context doesn't fit my project because each
  19. view is a completely different scene. 
  20.  
  21. The Dialog Resource Editor in VC++4.0 isn't too helpful unless
  22. I can use it to paint in OpenGL regions.  Hmmm. Maybe you can
  23. do that by specifying a "custom" object class tool module foundation
  24. thing, which would be MfcOglvw. I'll give that a try.  Thanks.
  25.  
  26. clp@alumni.cse.ucsc.edu
  27.  
  28. Ron Fosner wrote:
  29. > > But now I want to create 2 or 3 OpenGL context regions
  30. > > all within the same Window. How would I go about doing this?
  31. > >
  32.  
  33. > What exactly are you trying to do? If you want to render two scenes
  34. > in the same window you can just set up two viewports. If you're
  35. > trying to do something where you need two different pixel formats,
  36. > then it's impossible- you can't have, for example, the left half
  37. > double buffered, and the right half not......
  38. > Ron Fosner
  39. > ron@tiac.net
  40.